'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async getList() {
    const { ctx } = this;
    const result = await ctx.service.goods.getList();
    console.log(result);
    ctx.body = {
      code: 200,
      msg: '操作成功',
      data: result,
    };
  }
}

module.exports = HomeController;
